package cn.mazexal.exambg.models.db;

import lombok.Data;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;

import java.io.Serializable;

/**
* 系统广播, APP初始化的时候获取信息, 用于全局通知
*
*/
@Data
@TableName(value = "sys_broadcast")
public class SysBroadcastDO implements Serializable {

	/**
	* 
	*/
	@TableField(value = "id")
	private Long id;

	/**
	* 如果是0, 则为全渠道展示
	*/
	@TableField(value = "channel_id")
	private Long channelId;

	/**
	* 
	*/
	@TableField(value = "title")
	private String title;

	/**
	* 内容
	*/
	@TableField(value = "content")
	private String content;

	/**
	* 展示次数
	*/
	@TableField(value = "show_times")
	private Integer showTimes;

	/**
	* 小于该版本的才展示
	*/
	@TableField(value = "version_limit")
	private Integer versionLimit;

	/**
	* 动作, 1跳转网页, 2APP内跳转,0无动作
	*/
	@TableField(value = "action")
	private Integer action;

	/**
	* 附加参数
	*/
	@TableField(value = "extra_params")
	private String extraParams;

	/**
	* 
	*/
	@TableField(value = "create_time")
	private Long createTime;

}